package com.cw.entity;

import com.alibaba.excel.annotation.*;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.io.*;
import java.math.*;
import java.time.*;
import lombok.*;
import lombok.experimental.*;

/**
 * @author smq
 * @since 2021-04-27
 */
@ApiModel(value = "检查申请表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EXAM_APPLICATION")
public class ExamApplication implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "申请单号")
    @ExcelProperty(value = "APPLICATION_NO")
    @TableField("APPLICATION_NO")
    private String applicationNo;

    @ApiModelProperty(value = "门诊/住院号")
    @ExcelProperty(value = "VISIT_ID")
    @TableField("VISIT_ID")
    private String visitId;

    @ApiModelProperty(value = "病人his主键")
    @ExcelProperty(value = "PATIENT_INFO_ID")
    @TableField("PATIENT_INFO_ID")
        private String patientInfoId;

    @ApiModelProperty(value = "就诊类型编码")
    @ExcelProperty(value = "VISIT_TYPE_CODE")
    @TableField("VISIT_TYPE_CODE")
        private String visitTypeCode;

    @ApiModelProperty(value = "医嘱号")
    @ExcelProperty(value = "ORDER_NO")
    @TableField("ORDER_NO")
        private String orderNo;

    @ApiModelProperty(value = "检查类型编码")
    @ExcelProperty(value = "EXAMINATION_TYPE_CODE")
    @TableField("EXAMINATION_TYPE_CODE")
        private String examinationTypeCode;

    @ApiModelProperty(value = "检查类型名称")
    @ExcelProperty(value = "EXAMINATION_TYPE_NAME")
    @TableField("EXAMINATION_TYPE_NAME")
        private String examinationTypeName;

    @ApiModelProperty(value = "检查项目编码")
    @ExcelProperty(value = "ITEM_CODE")
    @TableField("ITEM_CODE")
        private String itemCode;

    @ApiModelProperty(value = "检查项目名称")
    @ExcelProperty(value = "ITEM_NAME")
    @TableField("ITEM_NAME")
        private String itemName;

    @ApiModelProperty(value = "申请原因")
    @ExcelProperty(value = "APPLICATION_REASON")
    @TableField("APPLICATION_REASON")
        private String applicationReason;

    @ApiModelProperty(value = "检查部位编码")
    @ExcelProperty(value = "EXAMINATION_REGION_CODE")
    @TableField("EXAMINATION_REGION_CODE")
        private String examinationRegionCode;

    @ApiModelProperty(value = "检查部位名称")
    @ExcelProperty(value = "EXAMINATION_REGION_NAME")
    @TableField("EXAMINATION_REGION_NAME")
        private String examinationRegionName;

    @ApiModelProperty(value = "检查方法编码")
    @ExcelProperty(value = "EXAMINATION_METHOD_CODE")
    @TableField("EXAMINATION_METHOD_CODE")
        private String examinationMethodCode;

    @ApiModelProperty(value = "检查方法名称")
    @ExcelProperty(value = "EXAMINATION_METHOD_NAME")
    @TableField("EXAMINATION_METHOD_NAME")
        private String examinationMethodName;

    @ApiModelProperty(value = "标本号")
    @ExcelProperty(value = "SAMPLE_NO")
    @TableField("SAMPLE_NO")
        private String sampleNo;

    @ApiModelProperty(value = "标本类型代码")
    @ExcelProperty(value = "SAMPLE_TYPE_CODE")
    @TableField("SAMPLE_TYPE_CODE")
        private String sampleTypeCode;

    @ApiModelProperty(value = "标本类型名称")
    @ExcelProperty(value = "SAMPLE_TYPE_NAME")
    @TableField("SAMPLE_TYPE_NAME")
        private String sampleTypeName;

    @ApiModelProperty(value = "检查状态代码")
    @ExcelProperty(value = "STATUS_CODE")
    @TableField("STATUS_CODE")
        private String statusCode;

    @ApiModelProperty(value = "检查状态名称")
    @ExcelProperty(value = "STATUS_NAME")
    @TableField("STATUS_NAME")
        private String statusName;

    @ApiModelProperty(value = "申请时间")
    @ExcelProperty(value = "INPUT_TIME")
    @TableField("INPUT_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inputTime;

    @ApiModelProperty(value = "申请医生编码")
    @ExcelProperty(value = "INPUT_DOCTOR_CODE")
    @TableField("INPUT_DOCTOR_CODE")
        private String inputDoctorCode;

    @ApiModelProperty(value = "申请医生名称")
    @ExcelProperty(value = "INPUT_DOCTOR_NAME")
    @TableField("INPUT_DOCTOR_NAME")
        private String inputDoctorName;

    @ApiModelProperty(value = "申请科室编码")
    @ExcelProperty(value = "INPUT_DEPT_CODE")
    @TableField("INPUT_DEPT_CODE")
        private String inputDeptCode;

    @ApiModelProperty(value = "申请科室名称")
    @ExcelProperty(value = "INPUT_DEPT_NAME")
    @TableField("INPUT_DEPT_NAME")
        private String inputDeptName;

    @ApiModelProperty(value = "申请病区编码")
    @ExcelProperty(value = "INPUT_WARD_CODE")
    @TableField("INPUT_WARD_CODE")
        private String inputWardCode;

    @ApiModelProperty(value = "申请病区名称")
    @ExcelProperty(value = "INPUT_WARD_NAME")
    @TableField("INPUT_WARD_NAME")
        private String inputWardName;

    @ApiModelProperty(value = "确认时间")
    @ExcelProperty(value = "CONFIRM_TIME")
    @TableField("CONFIRM_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime confirmTime;

    @ApiModelProperty(value = "确认人编码")
    @ExcelProperty(value = "CONFIRM_PERSON_CODE")
    @TableField("CONFIRM_PERSON_CODE")
        private String confirmPersonCode;

    @ApiModelProperty(value = "确认人名称")
    @ExcelProperty(value = "CONFIRM_PERSON_NAME")
    @TableField("CONFIRM_PERSON_NAME")
        private String confirmPersonName;

    @ApiModelProperty(value = "撤销/停止时间")
    @ExcelProperty(value = "CANCEL_TIME")
    @TableField("CANCEL_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime cancelTime;

    @ApiModelProperty(value = "撤销/停止人编码")
    @ExcelProperty(value = "CANCEL_PERSON_CODE")
    @TableField("CANCEL_PERSON_CODE")
        private String cancelPersonCode;

    @ApiModelProperty(value = "撤销/停止人名称")
    @ExcelProperty(value = "CANCEL_PERSON_NAME")
    @TableField("CANCEL_PERSON_NAME")
        private String cancelPersonName;

    @ApiModelProperty(value = "预约时间")
    @ExcelProperty(value = "APPOINTMENT_TIME")
    @TableField("APPOINTMENT_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime appointmentTime;

    @ApiModelProperty(value = "预约科室编码")
    @ExcelProperty(value = "APPOINTMENT_DEPT_CODE")
    @TableField("APPOINTMENT_DEPT_CODE")
        private String appointmentDeptCode;

    @ApiModelProperty(value = "预约科室名称")
    @ExcelProperty(value = "APPOINTMENT_DEPT_NAME")
    @TableField("APPOINTMENT_DEPT_NAME")
        private String appointmentDeptName;

    @ApiModelProperty(value = "预约人编码")
    @ExcelProperty(value = "APPOINTMENT_PERSON_CODE")
    @TableField("APPOINTMENT_PERSON_CODE")
        private String appointmentPersonCode;

    @ApiModelProperty(value = "预约人名称")
    @ExcelProperty(value = "APPOINTMENT_PERSON_NAME")
    @TableField("APPOINTMENT_PERSON_NAME")
        private String appointmentPersonName;

    @ApiModelProperty(value = "预约号")
    @ExcelProperty(value = "APPOINTMENT_NO")
    @TableField("APPOINTMENT_NO")
        private String appointmentNo;

    @ApiModelProperty(value = "执行时间")
    @ExcelProperty(value = "EXECUTE_TIME")
    @TableField("EXECUTE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime executeTime;

    @ApiModelProperty(value = "执行科室编码")
    @ExcelProperty(value = "EXECUTE_DEPT_CODE")
    @TableField("EXECUTE_DEPT_CODE")
        private String executeDeptCode;

    @ApiModelProperty(value = "执行科室名称")
    @ExcelProperty(value = "EXECUTE_DEPT_NAME")
    @TableField("EXECUTE_DEPT_NAME")
        private String executeDeptName;

    @ApiModelProperty(value = "执行人编码")
    @ExcelProperty(value = "EXECUTE_PERSON_CODE")
    @TableField("EXECUTE_PERSON_CODE")
        private String executePersonCode;

    @ApiModelProperty(value = "执行人名称")
    @ExcelProperty(value = "EXECUTE_PERSON_NAME")
    @TableField("EXECUTE_PERSON_NAME")
        private String executePersonName;

    @ApiModelProperty(value = "费用状态编码")
    @ExcelProperty(value = "CHARGE_STATUS_CODE")
    @TableField("CHARGE_STATUS_CODE")
        private String chargeStatusCode;

    @ApiModelProperty(value = "费用状态名称")
    @ExcelProperty(value = "CHARGE_STATUS_NAME")
    @TableField("CHARGE_STATUS_NAME")
        private String chargeStatusName;

    @ApiModelProperty(value = "是否加急")
    @ExcelProperty(value = "EMERGENCY_FLAG")
    @TableField("EMERGENCY_FLAG")
        private String emergencyFlag;

    @ApiModelProperty(value = "是否皮试")
    @ExcelProperty(value = "SKIN_TEST_FLAG")
    @TableField("SKIN_TEST_FLAG")
        private String skinTestFlag;

    @ApiModelProperty(value = "是否药观")
    @ExcelProperty(value = "OBSERVATION_FLAG")
    @TableField("OBSERVATION_FLAG")
        private String observationFlag;

    @ApiModelProperty(value = "检查费别")
    @ExcelProperty(value = "EXAMINATION_CHARGE")
    @TableField("EXAMINATION_CHARGE")
        private String examinationCharge;

    @ApiModelProperty(value = "申请单详细内容")
    @ExcelProperty(value = "APPLICATION_DETAILS")
    @TableField("APPLICATION_DETAILS")
        private String applicationDetails;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "MEMO")
    @TableField("MEMO")
        private String memo;

    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
        private LocalDateTime createTime;

    @ExcelProperty(value = "CREATE_BY")
    @TableField("CREATE_BY")
        private String createBy;

    @ExcelProperty(value = "UPDATE_TIME")
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ExcelProperty(value = "UPDATE_COUNT")
    @TableField("UPDATE_COUNT")
        private BigDecimal updateCount;

    @ExcelProperty(value = "UPDATE_BY")
    @TableField("UPDATE_BY")
        private String updateBy;

    @ExcelProperty(value = "DELETE_TIME")
    @TableField("DELETE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deleteTime;

    @ExcelProperty(value = "DELETE_BY")
    @TableField("DELETE_BY")
        private String deleteBy;

    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
        private String deleteFlag;

    @ApiModelProperty(value = "检查申请主键")
                @TableId("EXAM_APPLICATION_ID")
                private String examApplicationId;

    @ApiModelProperty(value = "来源")
    @ExcelProperty(value = "LOCAL_SYSTEM_NAME")
    @TableField("LOCAL_SYSTEM_NAME")
        private String localSystemName;



}
